package com.example.administrator.shzs.utils;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * recyclview  上下间隔
 * * Created by lanouhn on 2016/9/5.
 */
public class RecyclviewTopBtton extends RecyclerView.ItemDecoration{

    private int prace;
    public RecyclviewTopBtton(int prace){

        this.prace= prace;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.top=prace;
        outRect.bottom=prace;
    }
}
